Skip to content

Latest commit

 

History

History
 
 

My secure password

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

My secure password

Author: Marin Radu


Description

Crack Linux user password hashes to find the longest password.

Requirements

  • Understanding Linux filesystem and password storage
  • unshadow and john
  • rockyou.txt wordlist

Solve

Use unshadow to merge the passwd and shadow files, then crack with john.

unzip chall.zip
sudo unshadow passwd shadow > hash-all.txt
grep 'bash$' hash-all.txt | grep -v root > hash-users.txt
john --format=crypt hash-users.txt --wordlist=/usr/share/wordlists/rockyou.txt
john hash-users.txt --show

The longest password extracted will be manchesterunited.


Flag: CSCTF{manchesterunited}